package com.appkubes.mall.admin.application.base.model;

public class AuthModel {
    // 当前分销机构标识
    private final String appKey;

    // 上级分销商标识
    private final String parentAppKey;

    private AuthModel(Builder builder) {
        this.appKey = builder.appKey;
        this.parentAppKey = builder.parentAppKey;
    }

    public String getAppKey() {
        return this.appKey;
    }

    public String getParentAppKey() {
        return this.parentAppKey;
    }


    public static class Builder {
        // 当前分销机构标识
        private String appKey;

        // 上级分销商标识
        private String parentAppKey;


        public Builder setAppKey(String appKey) {
            this.appKey = appKey;
            return this;
        }

        public Builder setParentAppKey(String parentAppKey) {
            this.parentAppKey = parentAppKey;
            return this;
        }

        public AuthModel build() {
            return  new AuthModel(this);
        }
    }
}
